package com.heima.test;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class Demo {
	@Scheduled(cron="0 0 * * * *")
	public void demo1(){
		System.out.println("执行了");
	}
}
